-
Notifications
You must be signed in to change notification settings - Fork 4
fix: eslint #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: eslint #12
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Code Review AnalysisWalkthroughThis PR transitions the Plane Node SDK from auto-generated OpenAPI clients to a handcrafted architecture. It removes all generated APIs and models, introduces Configuration and BaseResource foundation classes, implements organized API resource classes for each domain, adds OAuth client support, and includes updated build tooling and comprehensive documentation. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant PlaneClient
participant Resource as API Resource<br/>(extends BaseResource)
participant Axios
participant API as Plane API
User->>PlaneClient: new PlaneClient(config)
activate PlaneClient
PlaneClient->>PlaneClient: Create Configuration
PlaneClient->>PlaneClient: Initialize all Resources
PlaneClient-->>User: Ready
deactivate PlaneClient
User->>PlaneClient: client.projects.list()
activate PlaneClient
PlaneClient->>Resource: list(workspaceSlug)
activate Resource
Resource->>Resource: buildUrl(endpoint)
Resource->>Resource: getHeaders() with auth
Note over Resource: Intercept request/response if enableLogging
Resource->>Axios: get(url, {headers, params})
activate Axios
Axios->>API: GET /api/v1/workspaces/{...}/projects/
activate API
API-->>Axios: 200 { projects: [...] }
deactivate API
Axios-->>Resource: response
deactivate Axios
Note over Resource: Log if enableLogging enabled
Resource->>Resource: handleError (if error)
Resource-->>PlaneClient: PaginatedResponse<Project>
deactivate Resource
PlaneClient-->>User: result
deactivate PlaneClient
rect rgba(100, 200, 100, 0.3)
Note over Resource,Axios: New Architecture<br/>- Custom BaseResource<br/>- Axios for HTTP<br/>- Centralized auth/logging<br/>- Error translation to HttpError
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60–90 minutes Specific areas requiring extra attention:
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
6ebe096 to
5971b8a
Compare
* delete old sdk code * [SILO-589] feat!: add handcrafted SDK v0.2.0 #8 * fix: prettier configuration (#10) * feat!: add handcrafted SDK v0.2.0 - added models for each entities - added APIs for all available Plane entities - tests to verify e2e api sanity - examples for reference BREAKING CHANGE: must be carefully upgraded from 0.1.x versions as method signatures are changed * chore: adding prettier config * chore: remove ds store * fix: format all files * chore: package imports --------- Co-authored-by: Surya Prashanth <[email protected]> * feat: add e2e and unit tests (#11) * move existing tests under unit folder * don't fail unit tests when env is not setup * create helpers folder for test helpers * feat: add e2e test to verify project use case * add jest and tsconfig.jest files * feat: add unit tests using jest for all entities * fix: eslint (#12) * chore: eslint config setup * chore: updated the build test workflow * chore: setup pnpm workflow * chore: build errors * chore: updated the push step * ops: update publishing flow for new sdk (#13) * ops: update publishing flow for nw sdk * run only e2e tests in github actions * chore: updated the publish workflow with corepack changes * chore: remove unused imports --------- Co-authored-by: Surya Prashanth <[email protected]>
Description
Type of Change
Summary by CodeRabbit
New Features
PlaneCliententry point for simplified SDK initialization and resource access.Documentation
Build & Configuration